package com.mrd.gtimpframe.service;

import com.mrd.gtimpframe.entity.Attachment;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface AttachmentService {
    int deleteByPrimaryKey(String id);

    int insert(Attachment record);

    int insertSelective(Attachment record);

    Attachment selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Attachment record);

    int updateByPrimaryKey(Attachment record);

    /**
     * 根据公司关系获取公司附件列表
     */
    List<Attachment> getAttachmentList(String agentRefId);

    /**
     * 删除附件（仅删除数据库信息）
     */
    void deleteattAchment(String id);

    /**
     * 下载附件
     */
    void downloadAttachment(HttpServletRequest request, HttpServletResponse response, String id);
}